pub exported fn hello_world(a: i32) -> i32 {
return a;
}
what do u think about the exported keyword? it disables name mangling and makes it externally visiblepub exported fn hello_world(a: i32) -> i32 {
return a;
}
what do u think about the exported keyword? it disables name mangling and makes it externally visible define private i32 @"hello_world@0@3"(i32 %0) !dbg !2 {
2 = distinct !DISubprogram(name: "hello_world", linkageName: "hello_world@0@3", scope: !3, file: !1, line: 4, type: !4, scopeLine: 4, spFlags: DISPFlagDefinition, unit: !0, retainedNodes: !7)
extern "C"
#[no_mangle]
attribute IIRCf, err := Sqrt(-1)
if err != nil {
fmt.Println(err)
}
func Sqrt(f float64) (float64, error) {
if f < 0 {
return 0, errors.New("math: square root of negative number")
}
// implementation
}
f, err := Sqrt(-1)
if err != nil {
fmt.Println(err)
}
a = 3/5
b = a * 14/2990
print(b)
DIV
to get it and multiplying fractions together is two MUL
s instead of one, adding fractions with different bases is variable cost, incurs atleast 2 muls and an addFree
function now also ensures that all other member variables are cleared when freeing the image data.
2024-03-13 16:26:36 E http: https://master2.ddnet.org/ddnet/15/servers.json failed. libcurl error (28): Failed to connect to master2.ddnet.org port 443 after 10000 ms: Timeout was reached
2024-03-13 16:26:36 E http: https://master3.ddnet.org/ddnet/15/servers.json failed. libcurl error (6): Could not resolve host: master3.ddnet.org
2024-03-13 16:26:36 E http: https://master1.ddnet.org/ddnet/15/servers.json failed. libcurl error (22): The requested URL returned error: 525
2024-03-13 16:26:37 E http: https://master4.ddnet.org/ddnet/15/servers.json failed. libcurl error (22): The requested URL returned error: 404
2024-03-13 16:26:36 E http: https://master2.ddnet.org/ddnet/15/servers.json failed. libcurl error (28): Failed to connect to master2.ddnet.org port 443 after 10000 ms: Timeout was reached
2024-03-13 16:26:36 E http: https://master3.ddnet.org/ddnet/15/servers.json failed. libcurl error (6): Could not resolve host: master3.ddnet.org
2024-03-13 16:26:36 E http: https://master1.ddnet.org/ddnet/15/servers.json failed. libcurl error (22): The requested URL returned error: 525
2024-03-13 16:26:37 E http: https://master4.ddnet.org/ddnet/15/servers.json failed. libcurl error (22): The requested URL returned error: 404
curl -I https://ddnet.org