workhorsy / py-cpuinfo

A module for getting CPU info with pure Python
MIT License
310 stars 59 forks source link

Add support for LoongArch #194

Closed xen0n closed 1 year ago

xen0n commented 1 year ago

The coding style of MIPS arch name matching is unified along the way.

This is a continuation of, and supersedes, the previous work done at #116.

workhorsy commented 1 year ago

This looks good, but should we capitalize "LOONG_32" and "LOONG_64"? Or will that be a problem?

xen0n commented 1 year ago

This looks good, but should we capitalize "LOONG_32" and "LOONG_64"? Or will that be a problem?

I chose not to capitalize because "Loong" isn't an acronym (it's just one of the many ways to transliterate the Chinese character 龙/龍 which means "loong/dragon"). But that's just my personal preference and there's certainly nothing in the wild that depend on exact matches of the string, so either works for me.