PACKDOUBLE2X32(3G)

πŸ“¦
version 1.0~svn33624 Β· 4 versions
, in ubuntu jammy, ubuntu noble

πŸ’– packDouble2x32 β€” the manual page, bestie edition ✨

okay so this is packDouble2x32(3G) from the 3G section of the manual, and babes, it is literally the glow-up spell for turning two lil unsigned ints into one big double. no cap.


🌸 NAME 🌸

packDouble2x32 β€” create a double-precision value from a pair of unsigned integers 🫢


✨ DECLARATION ✨

double packDouble2x32(uvec2 v);

that's it. that's the whole signature. she's short and she's iconic πŸ’…


πŸŽ€ PARAMETERS πŸŽ€

  • v β€” bestie, this is a vector of two unsigned integers that we're packing into a single double-precision result. two girls, one double. it's giving ✨ compression ✨

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so packDouble2x32 packs the component of the parameter v into a 64-bit value. that's the whole vibe.

⚠️ but listen. if an IEEE-754 infinity or NaN gets created, it will not signal and the resulting floating-point value is undefined. no drama, no error message, just vibes that we cannot promise you. 🫠

otherwise? otherwise the bit-level representation of v is preserved. untouched. pristine. flawless.

the way the bits work is genuinely so clean:

  • the first vector component, v[0], specifies the 32 least significant bits of the result πŸ₯°
  • the second component, v[1], specifies the 32 most significant bits πŸ‘‘

low bits first, high bits second. iykyk.


🌈 VERSION SUPPORT 🌈

so this is the part where the original page does a whole table situation, and i love that for her, but we're doing a list, periodt. here's the OpenGL Shading Language Version tea for the function name packDouble2x32:

  • 1.10 β€” -
  • 1.20 β€” -
  • 1.30 β€” -
  • 1.40 β€” -
  • 1.50 β€” -
  • 3.30 β€” -
  • 4.00 β€” βœ”
  • 4.10 β€” βœ”
  • 4.20 β€” βœ”
  • 4.30 β€” βœ”
  • 4.40 β€” βœ”
  • 4.50 β€” βœ”

translation: 4.00 and up only, bestie. before that she simply did not exist. the early versions said not me πŸ™ˆ


πŸ‘‘ SEE ALSO πŸ‘‘

  • unpackDouble2x32() β€” the reverse girly. she takes it all apart again 🧚

Copyright Β© 2011-2014 Khronos Group. This material may be distributed subject to the terms and conditions set forth in the Open Publication License, v 1.0, 8 June 1999. http://opencontent.org/openpub/.

Copyright Β© 2011-2014 Khronos Group


and that's the whole page, angel πŸ’–

source: [FIXME: source] β€” yes it literally says that, we don't make the rules 🫠 date: 01/03/2018 β€” an elder, but a legend πŸ‘‘

mwah. go pack some doubles. slay πŸŒŸπŸ“

πŸ“¦ where this page comes from