Skip to content

Instantly share code, notes, and snippets.

View diaphragm-workplace's full-sized avatar

Diaphragm Workplace diaphragm-workplace

  • UA
  • 06:22 (UTC +02:00)
View GitHub Profile
@diaphragm-workplace
diaphragm-workplace / float16.go
Created September 21, 2024 21:27
float16 golang test
package main
/*
#cgo CFLAGS: -march=native -mtune=native -Ofast -flto
#cgo LDFLAGS: -march=native -mtune=native -Ofast
#include <stdint.h>
// Optimized out into a single vector instruction on x86 compatibles and aarch64
void float32_to_float16(