Files
wehub-resource-sync 41cb1c0170
OpenSSF Scorecard / scorecard (push) Failing after 0s
DCO / dco (push) Failing after 0s
CodeQL SAST / analyze (push) Failing after 1s
Deploy Pages / deploy (push) Failing after 1s
chore: import upstream snapshot with attribution
2026-07-13 12:28:05 +08:00

46 lines
1.3 KiB
ArmAsm

/* nomic-embed-code vector blob embedded via assembler.
* Cross-platform: macOS (Mach-O) vs Linux (ELF) vs Windows (COFF). */
#if defined(__APPLE__)
.section __DATA,__const
.globl _PRETRAINED_VECTOR_BLOB
.globl _PRETRAINED_VECTOR_BLOB_LEN
.p2align 4
_PRETRAINED_VECTOR_BLOB:
.incbin "vendored/nomic/code_vectors.bin"
_PRETRAINED_VECTOR_BLOB_END:
.section __DATA,__const
.p2align 2
_PRETRAINED_VECTOR_BLOB_LEN:
.long _PRETRAINED_VECTOR_BLOB_END - _PRETRAINED_VECTOR_BLOB
#elif defined(_WIN32) || defined(__CYGWIN__) || defined(__MINGW32__)
.section .rdata,"dr"
.globl PRETRAINED_VECTOR_BLOB
.globl PRETRAINED_VECTOR_BLOB_LEN
.p2align 4
PRETRAINED_VECTOR_BLOB:
.incbin "vendored/nomic/code_vectors.bin"
PRETRAINED_VECTOR_BLOB_END:
.section .rdata,"dr"
.p2align 2
PRETRAINED_VECTOR_BLOB_LEN:
.long PRETRAINED_VECTOR_BLOB_END - PRETRAINED_VECTOR_BLOB
#else
.section .rodata,"a",@progbits
.globl PRETRAINED_VECTOR_BLOB
.globl PRETRAINED_VECTOR_BLOB_LEN
.p2align 4
PRETRAINED_VECTOR_BLOB:
.incbin "vendored/nomic/code_vectors.bin"
PRETRAINED_VECTOR_BLOB_END:
.section .rodata,"a",@progbits
.p2align 2
PRETRAINED_VECTOR_BLOB_LEN:
.long PRETRAINED_VECTOR_BLOB_END - PRETRAINED_VECTOR_BLOB
#endif