Search found 3332 matches

by srvaldez
Mar 05, 2024 18:57
Forum: Sources, Examples, Tips and Tricks
Topic: CORDIC - Rosetta Code
Replies: 0
Views: 164

CORDIC - Rosetta Code

the FreeBASIC translation of the Julia code is wrong https://rosettacode.org/wiki/CORDIC#FreeBASIC in Julia the variable v looks like a vector, v = [1, 0] # start with 2-vector cosine and sine of zero and in the call to the cordic function cosθ, sinθ = cordic(θr) cosθ and sinθ should have the respec...
by srvaldez
Mar 04, 2024 19:48
Forum: Windows
Topic: QuickLook -- a document previewer
Replies: 0
Views: 100

QuickLook -- a document previewer

on MacOS it's a standard feature to be able to preview all kinds of files by simply selecting the file and then pressing the space bar, but it's not a standard feature on Windows, but today I found a program that does just that, QuickLook. after launching QuickLook it keeps running in the background...
by srvaldez
Mar 01, 2024 20:09
Forum: General
Topic: [solved]Help with UDT and cptr
Replies: 4
Views: 271

Re: Help with UDT and cptr

you need to use parenthesis

Code: Select all

function works( p as byte ptr) as ulongint
    return (*cptr(UDT ptr, p)).b
end function
by srvaldez
Feb 17, 2024 19:14
Forum: Sources, Examples, Tips and Tricks
Topic: "Lite regulation" function ('regulateLite()') to be integrated into user loop for FPS control
Replies: 25
Views: 4522

Re: "Lite regulation" function ('regulateLite()') to be integrated into user loop for FPS control

fxm, I think that it would be good to have it in the manual, this thread may get buried and hard to find
by srvaldez
Feb 15, 2024 14:21
Forum: Community Discussion
Topic: A question about building fbc from source
Replies: 2
Views: 306

Re: A question about building fbc from source

hello cuthbertdavies :)
you could edit the makefile line 174, don't know if there's a way to do it from the command line
by srvaldez
Feb 13, 2024 23:20
Forum: Beginners
Topic: Abnormal crash while writing a null pointer.
Replies: 6
Views: 323

Re: Abnormal crash while writing a null pointer.

hello xX_Pokeman2003_Xx I get this warnings, I thinks that it explain the problem code.c: In function 'main': code.c:37:94: warning: '__builtin_memset' writing 256 bytes into a region of size 32 [-Wstringop-overflow=] 37 | *(char**)((uint8*)POINTERS$0 + ((int64)I$1 << (3ll & 63ll))) = (char*)0ul...
by srvaldez
Feb 13, 2024 23:10
Forum: Libraries & Headers
Topic: ezySVG Lib for Freebasic - make SVG files
Replies: 5
Views: 392

Re: ezySVG Lib for Freebasic - make SVG files

hello Tonigau :) a couple of errors in ezySVG.bi in functions SVG_Polygon and SVG_PolyLine the array PolyBB is an array of Long but in the function SVG_GetPolyMid it's an array of integer in TestSVG_1.bas line 202 you have SVG_Image(550, 280, 150, 200, "xMidyMid", FilePath +FileName, 0) bu...
by srvaldez
Feb 13, 2024 22:06
Forum: Libraries & Headers
Topic: ezySVG Lib for Freebasic - make SVG files
Replies: 5
Views: 392

Re: ezySVG Lib for Freebasic - make SVG files

very impressive!
thanks for sharing 👍😁
by srvaldez
Feb 11, 2024 18:29
Forum: General
Topic: a question for SARG
Replies: 7
Views: 288

Re: a question for SARG

SARG
yes!, that silenced the warnings
now it builds without a single warning 👍😁
by srvaldez
Feb 11, 2024 17:57
Forum: General
Topic: a question for SARG
Replies: 7
Views: 288

Re: a question for SARG

that warning doesn't make sense to me, I don't think it's worth the trouble to silence it
thanks SARG for looking into it :)
by srvaldez
Feb 11, 2024 14:20
Forum: General
Topic: a question for SARG
Replies: 7
Views: 288

Re: a question for SARG

@SARG 2 more warnings that need to be fixed src/gfxlib2/gfx_bsave.c: In function 'save_bmp': src/gfxlib2/gfx_bsave.c:138:64: warning: 'calloc' sizes specified with 'sizeof' in the earlier argument and not in the later argument [-Wcalloc-transposed-args] 138 | paltmp = (unsigned int *)calloc(sizeof(u...
by srvaldez
Feb 11, 2024 14:01
Forum: General
Topic: a question for SARG
Replies: 7
Views: 288

Re: a question for SARG

thank you SARG :D
I was not sure that movsd and movsl were equivalent, google didn't help
by srvaldez
Feb 11, 2024 11:56
Forum: General
Topic: a question for SARG
Replies: 7
Views: 288

a question for SARG

hello SARG :)
when building FB with gcc-13+ you get warnings like Warning: found `movsd'; assuming `movsl' was meant
I think that the culprit are the FB_MEMCPY functions defined in FB.h
how would you change those functions in order to get rid of those warnings?
by srvaldez
Feb 10, 2024 22:26
Forum: Community Discussion
Topic: problems with cutting-edge toolchains
Replies: 0
Views: 152

problems with cutting-edge toolchains

I like to test the latest toolchains together with the latest work in progress FB, I do most of my tests in 64-bit but today I wanted to see the performance difference between 32 and 64-bit only to find that my program would crash with the error 0xC0000005 the test program uses 4 strings 10100 in si...
by srvaldez
Feb 07, 2024 21:06
Forum: General
Topic: heap corruption when using C library
Replies: 11
Views: 501

Re: heap corruption when using C library

I changed my code, instead of a function to set the precision I changed the initializer to take a precision argument, the FB code needs to start with these 2 lines const dec_float_digits_precision = 64 #Include "DecFloatC.bi" there are no problems with shared variables :D never knew that F...