GNU social JP
  • FAQ
  • Login
GNU social JPは日本のGNU socialサーバーです。
Usage/ToS/admin/test/Pleroma FE
  • Public

    • Public
    • Network
    • Groups
    • Featured
    • Popular
    • People

Embed Notice

HTML Code

Corresponding Notice

  1. Embed this notice
    [SUYA] ひみつ :blabcatverified: (ivesen@miniwa.moe)'s status on Friday, 11-Apr-2025 03:15:20 JST[SUYA] ひみつ :blabcatverified:[SUYA] ひみつ :blabcatverified:
    in reply to
    • Haelwenn /элвэн/ :triskell:
    • :umu: :umu:
    @lanodan @a1ba seems the BE->LE method suggested by the blog in question isn't optimized, while the byteswap that's argued against is.
    will this ever matter? :blobshrug:

    https://godbolt.org/z/bYcvcvMvh
    In conversationabout 2 months ago from gnusocial.jppermalink

    Attachments

    1. Domain not in remote thumbnail source whitelist: raw.githubusercontent.com
      Compiler Explorer - C
      from Matt Godbolt
      int func(char *data){ int i = (data[3]<<0) | (data[2]<<8) | (data[1]<<16) | (data[0]<<24); return i; } int func2(char *data) { int i = *((int*)data); /* swap the bytes */ i = ((i&0xFF)<<24) | (((i>>8)&0xFF)<<16) | (((i>>16)&0xFF)<<8) | (((i>>24)&0xFF)<<0); return i; } int func3(char *data) { int i = *((int*)data); return ntohl(i); }
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.