[haiku-development] Re: Fixing get_cpu_model_string(), Ticket 3541

  • From: Urias McCullough <umccullough@xxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Sat, 20 Jun 2009 08:51:30 -0700

On Sat, Jun 20, 2009 at 8:40 AM, Axel Dörfler<axeld@xxxxxxxxxxxxxxxx> wrote:
> Christian Packmann <Christian.Packmann@xxxxxx> wrote:
>> I'm currently breaking down the information in a "logical" format,
>> i.e. I
>> group all flags for MMX/SSE/3DNow! in one uint32 or string. This
>> makes it
>> easier for the programmer when needing specific info, as all needed
>> information is stored in one place. For a K10, the generated string
>> looks
>> like this:
>> "MMX 3DNow! 3DNow!+ SSE SSE-Integer SSE2 SSE3 SSE4a SSE128 MOVU
>> 3DNow!Prefetch"
>
> Strings are usually the last thing you want to mess with in an
> (suggested) API like this.

That's fine too, I just need something I can iterate through and
generate a sring to pass to the BOINC server. Speaking with a BOINC
dev previously, he was dismayed that the features were being
transferred as strings as well, but at this point, there are well over
a hundred BOINC projects in production with the current API, so
changing it will be painful :P

- Urias

Other related posts: